package com.suntianci.stock.pojo.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName StockRtDomain
 * @Author 孙天赐
 * @Date 2025/1/9 9:13
 * @Description TODO: 个股最新分时行情数据封装
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(description = "个股最新分时行情数据封装")
public class StockRtDomain {

    /**
     * 最新交易量
     */
    @ApiModelProperty(value = "最新交易量")
    private Long tradeAmt;

    /**
     * 前收盘价格
     */
    @ApiModelProperty(value = "前收盘价格")
    private BigDecimal preClosePrice;

    /**
     * 最低价
     */
    @ApiModelProperty(value = "最低价")
    private BigDecimal lowPrice;

    /**
     * 最高价
     */
    @ApiModelProperty(value = "最高价")
    private BigDecimal highPrice;

    /**
     * 开盘价
     */
    @ApiModelProperty(value = "开盘价")
    private BigDecimal openPrice;

    /**
     * 交易金额
     */
    @ApiModelProperty(value = "交易金额")
    private BigDecimal tradeVol;

    /**
     * 当前价格
     */
    @ApiModelProperty(value = "当前价格")
    private BigDecimal tradePrice;

    /**
     * 当前日期
     */
    @ApiModelProperty(value = "当前日期")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "Asia/Shanghai")
    private Date curDate;
}
